package org.xfy.ymcc.feign;

import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.xfy.common.result.JsonResult;
import org.xfy.ymcc.feign.fallback.UserFeignClientFallbackFactory;

@FeignClient(value = "service-user",fallbackFactory = UserFeignClientFallbackFactory.class)
public interface UserFeignClient {
    @GetMapping("/user/login/{loginId}")
    JsonResult getLogin(@PathVariable("loginId")Long loginId);
}
